package com.yxhl.zoume.data.http.rest.repositoryimpl;

import com.yxhl.zoume.data.http.rest.param.base.BaseRequestParam;
import com.yxhl.zoume.data.http.rest.param.mywallet.TradeRecordDetailParam;
import com.yxhl.zoume.data.http.rest.param.mywallet.TradeRecordsParam;
import com.yxhl.zoume.data.http.rest.repositoryimpl.base.BaseDataRepository;
import com.yxhl.zoume.data.http.repository.mywallet.MyWalletRepository;
import com.yxhl.zoume.data.http.rest.response.mywallet.TradeRecordDetailResponse;
import com.yxhl.zoume.data.http.rest.response.mywallet.TradeRecordsResponse;
import com.yxhl.zoume.data.http.rest.response.mywallet.WalletBalanceResponse;

import javax.inject.Inject;

import retrofit2.http.Body;
import rx.Observable;

/**
 * 项目名称：Ferrari
 * Created by menggod on 16/11/14 .
 */

public class MyWalletDataRepository extends BaseDataRepository implements MyWalletRepository {

    @Inject
    public MyWalletDataRepository() {
    }

    @Override
    public Observable<TradeRecordsResponse> queryTradeRecords(@Body TradeRecordsParam param) {
        return mZouMeService.queryTradeRecords(param);
    }

    @Override
    public Observable<TradeRecordDetailResponse> queryTradeRecordDetail(TradeRecordDetailParam param) {
        return mZouMeService.queryTradeRecordDetail(param);
    }

    @Override
    public Observable<WalletBalanceResponse> queryWalletBalance(@Body BaseRequestParam param) {
        return mZouMeService.queryWalletBalance(param);
    }


}
